package com.aiyige.model.response;

import java.util.List;

/**
 * Created by zhuyakun on 2017/12/12.
 */

public class CourseIndexResponse {

    public int code;
    public String message;
    public Data data;

    public static class Data {
        public boolean asc;
        public String condition;
        public long current;
        public long limit;
        public long offset;
        public long offsetCurrent;
        public boolean openSort;
        public String orderByField;
        public int pages;
        public List<Record> records = null;
        public boolean searchCount;
        public long size;
        public long total;
    }

    public static class Record {
        public static final int TYPE_AD = 0;
        public static final int TYPE_PHOTO = 1;
        public static final int TYPE_VIDEO = 2;
        public static final int TYPE_INFO = 3;
        public static final int TYPE_SPECIAL_TOPIC = 4;
        public static final int TYPE_LEARN_VIDEO = 5;
        public static final int TYPE_MAJOR_COURSE = 6;
        public static final int TYPE_TRAING_CLASS = 7;
        public static final int TYPE_PERSONAL_TRAINER = 8;
        public static final int TYPE_UNIVERSAL_PRODUCT = 9;
        public static final int TYPE_CLASSROOM_RENTAL = 10;

        public long id;
        public int type;
        public String cover;
        public String title;
        public long createTime;
        public String owner;
        public long ownerId;
        public int ownerLevel;
        public String ownerAvatar;
        public long categoryId;
        public double price;
        public double originPrice;
        public String city;
        public String platform;
        public int commentCount;
        public int praiseCount;
        public int favoriteCount;
        public int watchCount;
        public int sellCount;
        public String router;
    }

}
